<!DOCTYPE html>
<html lang="zh-CN">
<head>
	#include("/_view/common/_dialog_head.html")
</head>
<body>
<div class="form-content" >
	<form class="form-horizontal margin-top-30" id="scanForm" action="#(ctx)/admin/exitScan/autoScan" method="post">
	
		
		<div class="form-group">
			<label class="col-sm-4 control-label">电泳框编号（挂筐）</label>
			<div class="col-sm-8">
				<input type="text" class="form-control" autocomplete="off" name="code" value="">
			</div>
		</div>
		
		<div class="form-group">
			<div class="col-sm-offset-4 col-sm-8">
				<input class="btn btn-primary" type="submit" value="提交" />
			</div>
		</div>
	</form>
</div>
<style type="text/css">
	.form-content {
		padding: 20px;
	
	}
	#scanForm {
		width: 400px;
	}

	.form-group {
		margin-bottom: 25px;
	}

	#scanForm label {
		line-height: 1;
		vertical-align: baseline;
		color: #23527c;
		font-size: 20px;
		font-weight: normal;
		margin-bottom: 8px;;
	}
</style>

<script type="text/javascript">
$(document).ready(function() {
	$("#scanForm").ajaxForm({
		dataType: "json"
		, beforeSubmit: function(formData, jqForm, options) {}
		, success: function(ret) {
			if (ret.state == "ok") {
				var index = parent.layer.getFrameIndex(window.name);//获取窗口索引   
				setTimeout(function(){
                    parent.searchRack();
                    parent.layer.close(index);
                }, 500);
			} else {
				showFailMsg(ret.msg);
			}
		}
		, error: function(ret) {alert(ret.statusText);}
		, complete: function(ret) {} 	      
	});
});
</script>
</body>
</html>